# @Filename:    filter
# @Author:      王佳伟
# @Time:        2025-02-06 14:37
# @Describe:    filter()函数 filter(function, iterable)

my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
result = filter(lambda x: x % 2 == 0, my_list)
print(list(result))